#pragma once
#include <vector>
#include "spotLight.h"
#include "imageloader.h"
#include "cugl.h"


class lightPost
{
public:
	lightPost(int rot, GLfloat posX=0, GLfloat posY=0, GLfloat posZ=0);
	virtual void display();
	void turnOn();
	cugl::Camera* getCam();
	void turnOff();
	GLfloat getLightXPos();
	GLfloat getLightYPos();
	GLfloat getLightZPos();
	GLfloat getLightXDir();
	GLfloat getLightYDir();
	GLfloat getLightZDir();
	~lightPost(void);

	spotLight* light;
private:
	GLfloat posX;
	GLfloat posY;
	GLfloat posZ;
	
	cugl::Camera* cam;

	GLfloat rectHeight;
	GLfloat rectWidth;
	GLfloat lightHeight;
	GLfloat lightWidth;
	GLfloat cylHeight;
	GLfloat cylRadius;
	GLfloat rotationLight;
	GLfloat rotationLight1;
	GLUquadricObj* quad;

	static GLuint _textureId;	// shared by all lightposts
};